<!DOCTYPE html>
<head>
    <meta charset="UTF-8">
    <title>修改课程</title>
    <link rel="stylesheet" href="/layui/css/layui.css">
    <script src="/layui/src/layui.js"></script>
    <script src="/layui/src/jquery-3.2.1.min.js"></script>

    <link rel="stylesheet" href="css/CourseUpdate.css">
    <script src="js/CourseUpdate.js"></script>


</head>
<div id="details">
    <form class="layui-form" action="" id="form">
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">课程编号：</label>
                <div class="layui-input-inline">
                    <input type="text" name="courseNo"  class="layui-input">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">课程名称：</label>
                <div class="layui-input-inline">
                    <input type="text" name="courseName" class="layui-input">
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">课程价格：</label>
                <div class="layui-input-inline">
                    <input type="text" name="courseNprice" class="layui-input">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">课程分类：</label>
                <div class="layui-input-inline">
                    <select id="name">
                        <option value="">请选择商品分类</option>
                    </select>
                </div>
            </div>
        </div>
        <div class="layui-form-item">

            <div class="layui-inline">
                <label class="layui-form-label">课程畅销：</label>
                <div class="layui-input-inline">
                    <input type="text" name="saleNum" class="layui-input">
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">课程标签：</label>
            <div class="layui-input-block">
                <textarea class="layui-textarea textarea"  id="courseLabel" name="courseLabel"></textarea>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">课程介绍：</label>
            <div class="layui-input-block">
                <textarea class="layui-textarea textarea"  id="courseIntro" name="courseIntro"></textarea>
            </div>
        </div>

        <!--获取商品id-->
        <input type="hidden" name="courseId" id="courseId">

        <!--修改原价-->
        <input type="hidden" id="coursePrice" name="coursePrice">

    </form>
    <div id="btn_div">
        <button type="button" class="layui-btn layui-btn-primary layui-border-black layui-btn-md List_body_button retrieve_button" id="cancel" onclick="cancel()">
            取消
        </button>
        <button type="button" class="layui-btn layui-btn-primary layui-border-black layui-btn-md List_body_button retrieve_button" id="sure" onclick="updateCourse()">
            确定
        </button>
    </div>
</div>

</body>
</html>
